
const {STORE_UID} = require('../config/config.data')

// 登录状态校验

module.exports = (req,res,next) =>{
    

    let uidResult = req.get('storeuid')
    
    let isLogined = STORE_UID.find(item=>item.storeuid === uidResult)

    if(!isLogined ){
        res.send({code:0,msg:"没有登录，请登录后访问"})
        return
    }  
  
    next()
}